Index  Decision Records ENH-175: Sort Decision Records Overview Table by ID

ENH-175: Sort Decision Records Overview Table by ID

1 Status

Date Status
20-05-2026 Proposed
20-05-2026 Accepted
20-05-2026 In-Progress
20-05-2026 Implemented

2 Context

The Decision Records Overview page (build/decisions/overview.html) renders one row per decision record with columns #, Type, Status, Title, Start Date, Target Date, Owner (as established by ADR-170, ADR-172, and ENH-173).

Today the rows appear in the order in which the underlying Decision instances were discovered while walking the decisions/ folder tree — top-level adr-*.md files first, then enhancements/enh-*.md, then issues/issue-*.md, each group in filesystem (and therefore filename-string) order. The numeric sequence shared across all decision-record types (per ADR-170 — the sequence continues from Redmine's last task #169) is not used for sorting at all.

As the project accumulates decision records, this order becomes unhelpful:

3 Decision

The rows of the Decision Records Overview table shall be sorted in ascending order by the numeric sequence number embedded in each record's ID — the digits portion of <type>-<digits> (e.g., adr-170 → 170, issue-171 → 171, enh-173 → 173). The type prefix is ignored when sorting; the sequence is shared across all decision-record types per ADR-170.

Sorting is performed once, in the DecisionsOverview renderer, immediately before rows are emitted. The sort is stable: in the (not expected) case of two records sharing the same sequence number, their relative order is whatever the discovery walk produced.

4 Scope

Item Status Start Date Target Date Description
Code Done 20-05-2026 20-05-2026 DecisionsOverview sorts the list of Decision instances by the integer parsed from the digits portion of the decision-record ID before emitting table rows

The change is considered cosmetic — there are no new requirements and no end-to-end tests are added in scope of this enhancement.

5 Out of Scope

6 Consequences

6.1 Positive

6.2 Negative

6.3 Neutral

7 Alternatives Considered

Not applicable. Just a simple enhancement.

8 Software Versions

Software Version Category Software Version ID
Latest Released Version 0.3.1
Issue Found in Version 0.4.0
Target Release Version 0.4.0

9 References

10 Review Evidences